<?php

use think\facade\Route;

Route::rule('captcha','Verify/index','GET');
Route::rule('login','Login/login','POST');
Route::rule('logout','Login/logout','GET');

Route::rule('getAdminInfoByToken','User/getUserInfo','GET');
Route::rule('getMenuListByToken','User/getMenuList','GET');

//文件上传
Route::rule('uploadFile','File/uploadFile','POST');

//角色管理
Route::rule('getRoleList','Role/list','GET');
Route::rule('getRoleTreeById','Role/treeById','GET');
Route::rule('saveRole','Role/save','POST');
Route::rule('deleteRoleById','Role/deleteById','GET');
Route::rule('updateRoleStatus','Role/updateStatus','GET');
//管理员管理
Route::rule('getAdminUserList','User/list','GET');
Route::rule('saveAdminUser','User/save','POST');
Route::rule('updateUserStatus','User/updateStatus','GET');
Route::rule('deleteUserById','User/deleteById','GET');
Route::rule('changeUserPwd','User/changePwd','POST');
//公用数据配置
Route::rule('getCategoryTree','Category/allTree','GET');
Route::rule('saveCategory','Category/save','POST');
Route::rule('updateCategoryStatus','Category/updateStatus','GET');
Route::rule('deleteCategory','Category/deleteById','GET');
Route::rule('getCategory','Category/category','GET');
Route::rule('getCategoryMultiple','Category/categoryMultiple','POST');

//轮播图管理
Route::rule('getBannerList','Banner/list','GET');
Route::rule('saveBanner','Banner/save','POST');
Route::rule('updateBannerStatus','Banner/updateStatus','GET');
Route::rule('deleteBannerById','Banner/deleteById','GET');

//通知公告管理
Route::rule('getNoticeList','Notice/list','GET');
Route::rule('saveNotice','Notice/save','POST');
Route::rule('updateNoticeStatus','Notice/updateStatus','GET');
Route::rule('deleteNoticeById','Notice/deleteById','GET');

//家政服务管理
Route::rule('getServiceList','HomeService/list','GET');
Route::rule('saveService','HomeService/save','POST');
Route::rule('updateServiceStatus','HomeService/updateStatus','GET');
Route::rule('deleteServiceById','HomeService/deleteById','GET');

//党建情况
//单页配置
Route::rule('getPageContent','Page/getData','GET');
Route::rule('setPageContent','Page/setData','POST');
//党群服务中心管理
Route::rule('getBuildList','Build/list','GET');
Route::rule('saveBuild','Build/save','POST');
Route::rule('updateBuildStatus','Build/updateStatus','GET');
Route::rule('deleteBuildById','Build/deleteById','GET');

//小程序用户管理
Route::rule('getWxUserList','WxUser/list','GET');
Route::rule('getWxUserInfo','WxUser/info','GET');
Route::rule('auditHouse','WxUser/audit','POST');//审核房屋

//意见反馈
Route::rule('feedBackList','FeedBack/list');
Route::rule('deleteFeedBack','FeedBack/deleteById');

//房屋管理
Route::rule('getHouseTree','House/allTree','GET');
Route::rule('saveHouse','House/save','POST');
Route::rule('updateHouseStatus','House/updateStatus','GET');
Route::rule('deleteHouse','House/deleteById','GET');
Route::rule('getHouse','House/category','GET');
Route::rule('getHouseMultiple','House/categoryMultiple','POST');

Route::rule('getHouseOption','House/options','GET');//小区下拉
Route::rule('getHouseTreeOption','House/optionTree','GET');//楼、单元、户下拉

//住户管理
Route::rule('getHousePersonList','HousePerson/list','GET');
Route::rule('saveHousePerson','HousePerson/save','POST');
Route::rule('updateHousePersonStatus','HousePerson/updateStatus','GET');
Route::rule('deleteHousePersonById','HousePerson/deleteById','GET');

//报修申请
Route::rule('applyList','ApplyRepair/list');
Route::rule('deleteApply','ApplyRepair/deleteById');
Route::rule('auditApply','ApplyRepair/audit','POST');//审核

//首页统计
Route::rule('topNumStatistics','Statistics/topNum');

//文件库
Route::rule('getFileList','File/list','GET');
Route::rule('uploadFile','File/uploadFile','POST');
Route::rule('deleteFile','File/deleteFile','POST');

//人大代表管理
Route::rule('representList','Represent/index','GET');
Route::rule('saveRepresent','Represent/save','POST');
Route::rule('deleteRepresent','Represent/deleteById','GET');

Route::rule('representMessageList','RepresentMessage/index','GET');
Route::rule('deleteRepresentMessage','RepresentMessage/deleteById','GET');

//首页统计
/*Route::rule('topNumStatistics','Statistics/topNum');
Route::rule('workPie','Statistics/workPie');
Route::rule('workLine','Statistics/workLine');
Route::rule('userPie','Statistics/userPie');
Route::rule('tableStatistics','Statistics/table');
Route::rule('tableWxUser','Statistics/wxUserTable');*/
